<h1>Listing Galleries</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Url</th>
  </tr>

<% for gallery in @galleries %>
  <tr>
    <td><%=h gallery.name %></td>
    <td><%=h gallery.url %></td>
    <td><%= link_to 'Show', gallery_path(gallery) %></td>
    <td><%= link_to 'Edit', edit_gallery_path(gallery) %></td>
    <td><%= link_to 'Destroy', gallery_path(gallery), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Gallery', new_gallery_path %>
